package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.PrivateMessage;
import cn.wolfcode.trip.base.domain.User;
import cn.wolfcode.trip.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PrivateMessageMapper {

    int deleteByPrimaryKey(Long id);

    int insert(PrivateMessage entity);

    PrivateMessage selectByPrimaryKey(Long id);

    List<PrivateMessage> selectForList(QueryObject qo);

    List<User> selectReceiverReBysenderId(QueryObject qo);

    void updateBrower(@Param("id") Long id);

    void updateBySenderId(@Param("senderId")Long senderId);
}